package com.thkj.modules.sys.service.impl;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.thkj.modules.sys.entity.TblVersion;
import com.thkj.modules.sys.service.TblVersionService;

import dp.dao.PagingList;
import dp.service.BaseService;

@Service
public class TblVersionServiceImpl extends BaseService implements TblVersionService {
	public void insertTblVersion(TblVersion t) {
		dao.insert("com.thkj.mapper.TblVersion.insert", t);
	}

	public int updateTblVersion(TblVersion t) {
		int row = dao.update("com.thkj.mapper.TblVersion.update", t);
		return row;
	}

	public int deleteTblVersion(String t) {
		return dao.delete("com.thkj.mapper.TblVersion.delete", t);
	}

	public TblVersion getTblVersionById(String t) {
		return dao.queryForObject("com.thkj.mapper.TblVersion.getById", t, TblVersion.class);
	}

	@Override
	public PagingList<TblVersion> query(int pageIndex, int pageSize, Map<String, Object> param) {
		return dao.queryForPagingList("com.thkj.mapper.TblVersion.query", param, pageIndex, pageSize, TblVersion.class);
	}

}